package com.sfx.other.Demo.clone;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-09-05
 * Time: 7:12
 */
public class Main {
    public static void main(String[] args){
        Person person1 = new Person("11",19,new Address("武汉"));
        Person person1Copy = person1.clone();
        // true
        System.out.println(person1.equals(person1Copy));
        System.out.println(person1.getName().equals(person1Copy.getName()));
        System.out.println(person1.getAddress() == person1Copy.getAddress());
    }
}